import request from '@/utils/request'

// 获取检测地点的
export function getGroupCheckTaskList(formData) {
    return request({
        url: '/appointment/getGroupCheckTaskList',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        data: formData
    })
}
// 根据uuid查询检测组信息
export function getGroupCheckTask(uuid) {
    return request({
        url: '/appointment/getGroupCheckTask',
        method: 'get',
        params: { uuid }
    })
}
// 添加一条检测任务组信息
export function addGroupCheckTask(formData) {
    return request({
        url: '/appointment/addGroupCheckTask',
        method: 'post',
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        data: formData //post的请求，要使用data而不能用params
    })
}
// 更新一条检测地点信息
export function updateGroupCheckTask(formData) {
    return request({
      url: '/appointment/updateGroupCheckTask',
      method: 'post',
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
      },
      data: formData
    })
  }
// 删除一条检测任务组信息
export function delGroupCheckTask(uuid) {
    return request({
        url: '/appointment/delGroupCheckTask',
        method: 'get',
        params: { uuid }
    })
}
